<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:template match="freakDocs">
  <ol>
  <xsl:for-each select="chapter">
    <li class="docTitle">
      <xsl:value-of select="@title"/>
    </li>
  </xsl:for-each>
  </ol>
  <hr/>
  <xsl:for-each select="chapter">
    <div style="height:2em;"></div>
    <div class="docTitle">
      <xsl:value-of select="@title"/>
    </div>
    <div style="height:1em;"></div>
    <div class="docBody">
      <xsl:value-of select="." disable-output-escaping="yes"/>
    </div>
    <hr/>
  </xsl:for-each>
</xsl:template>

</xsl:stylesheet>